﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Business;
using EntityModel;

namespace LMS.Admin.Controllers
{
    public class BaseController<T> : Controller
        where T : EntityBase, new()
    {

        public Business ProcessHelper<Business>()
            where Business : BusinessBase<T, UserModel>, new()
        {
            return new Business();
        }

        public Business ProcessHelper<Business, X>()
            where Business : BusinessBase<X, UserModel>, new()
            where X : EntityBase, new()
        {
            return new Business();
        }
    }
}
